<?php
include("../../app/dao/login.php");
require_once('../../app/dao/database.php');
$class_db = new Database;
$log = new Login_Dao($class_db);
if($_REQUEST['Submit'] == "Login"){
if($log->login("user", $_REQUEST['myusername'], $_REQUEST['mypassword']) == true){
header("location:index.php");
}else{
echo "Wrong Username or Password";
}
}
?>